package com.miqtech.master.wyrecorder.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by xiaoyi on 2016/8/22.
 */
public class AnchorInfo implements Parcelable {
    @SerializedName(value = "is_certificate",alternate = {"isCertificate"})
    int isCertificate;
    @SerializedName("nickname")
    private String name;
    @SerializedName("room_id")
    private String room;
    @SerializedName("live_id")
    private String liveId;
    private String id;
    private int state;
    private int fans;
    @SerializedName("up_user_id")
    private String upUserId;
    @SerializedName(value = "icon", alternate = {"user_icon"})
    private String icon;
    int duration; //直播时长
    int live_times;
    private String notice;//直播公告
    @SerializedName("is_subscribe")
    private int isSubscribe;//	是否已关注1是0否
    private long bait; //收到的鱼饵数
    @SerializedName("yuer_coin")
    private long yuerCoin; //收到的鱼币数
    private int sex;//性别 0男1女
    @SerializedName("show_my_room")
    private int showMyRoom; //1 显示我的房间按钮
    @SerializedName("show_to_be_up")
    private int showToBeUp; // 1 显示我要当主播
    @SerializedName("show_earn")
    private int showEarn; // 1 显示收益

    public int getShowEarn() {
        return showEarn;
    }

    public void setShowEarn(int showEarn) {
        this.showEarn = showEarn;
    }

    public int getShowMyRoom() {
        return showMyRoom;
    }

    public String getUpUserId() {
        return upUserId;
    }

    public void setUpUserId(String upUserId) {
        this.upUserId = upUserId;
    }

    public int getIsCertificate() {
        return isCertificate;
    }

    public void setIsCertificate(int isCertificate) {
        this.isCertificate = isCertificate;
    }

    public void setShowMyRoom(int showMyRoom) {
        this.showMyRoom = showMyRoom;
    }

    public int getShowToBeUp() {
        return showToBeUp;
    }

    public void setShowToBeUp(int showToBeUp) {
        this.showToBeUp = showToBeUp;
    }

    public long getBait() {
        return bait;
    }

    public void setBait(long bait) {
        this.bait = bait;
    }

    public long getYuerCoin() {
        return yuerCoin;
    }

    public void setYuerCoin(long yuerCoin) {
        this.yuerCoin = yuerCoin;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public static Creator<AnchorInfo> getCREATOR() {
        return CREATOR;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRoom() {
        return room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    public String getLiveId() {
        return liveId;
    }

    public void setLiveId(String liveId) {
        this.liveId = liveId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getFans() {
        return fans;
    }

    public void setFans(int fans) {
        this.fans = fans;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getLive_times() {
        return live_times;
    }

    public void setLive_times(int live_times) {
        this.live_times = live_times;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public int getIsSubscribe() {
        return isSubscribe;
    }

    public void setIsSubscribe(int isSubscribe) {
        this.isSubscribe = isSubscribe;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.room);
        dest.writeString(this.liveId);
        dest.writeString(this.id);
        dest.writeInt(this.state);
        dest.writeInt(this.fans);
        dest.writeString(this.icon);
        dest.writeInt(this.duration);
        dest.writeInt(this.live_times);
        dest.writeString(this.notice);
        dest.writeInt(this.isSubscribe);
        dest.writeLong(this.bait);
        dest.writeLong(this.yuerCoin);
        dest.writeInt(this.sex);
        dest.writeInt(this.showMyRoom);
        dest.writeInt(this.showToBeUp);
        dest.writeInt(this.showEarn);
    }

    public AnchorInfo() {
    }

    protected AnchorInfo(Parcel in) {
        this.name = in.readString();
        this.room = in.readString();
        this.liveId = in.readString();
        this.id = in.readString();
        this.state = in.readInt();
        this.fans = in.readInt();
        this.icon = in.readString();
        this.duration = in.readInt();
        this.live_times = in.readInt();
        this.notice = in.readString();
        this.isSubscribe = in.readInt();
        this.bait = in.readLong();
        this.yuerCoin = in.readLong();
        this.sex = in.readInt();
        this.showMyRoom = in.readInt();
        this.showToBeUp = in.readInt();
        this.showEarn = in.readInt();
    }

    public static final Creator<AnchorInfo> CREATOR = new Creator<AnchorInfo>() {
        @Override
        public AnchorInfo createFromParcel(Parcel source) {
            return new AnchorInfo(source);
        }

        @Override
        public AnchorInfo[] newArray(int size) {
            return new AnchorInfo[size];
        }
    };
}
